class UserProduct < ActiveRecord::Base
  belongs_to :user
  belongs_to :product

  validates_presence_of :user_id
  validates_presence_of :product_id
  validates_uniqueness_of :product_id, :scope => :user_id
end
